package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.LiveListBeen;
import cn.xfdzx.android.apps.shop.bean.SubmitWithdrawalBeen;
import cn.xfdzx.android.apps.shop.bean.WithdrawalListBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface WithdrawalListContract {
    interface Model {
        Flowable<WithdrawalListBeen> withdrawalList(String storeId,String page,String limit);

        Flowable<SubmitWithdrawalBeen>  submitWithdrawal( String store_id, String is_full ,String drawing_flag ,String order_sn ,String remark);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onWithdrawalListSuccess(WithdrawalListBeen bean);

        void onSubmitWithdrawalSuccess(SubmitWithdrawalBeen bean);
        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();
    }

    interface Presenter {
        /**
         *
         */
        void withdrawalList(boolean isRefresh, boolean isLoading, String storeId,String page,String limit);
        /**
         *
         */
        void submitWithdrawal ( String store_id, String is_full ,String drawing_flag ,String order_sn ,String remark);
    }
}
